package org.space.galaxyCabinet.controller;

import org.space.galaxyCabinet.domain.FreightChannel;
import org.space.galaxyCabinet.service.FreightChannelControlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/freightChannel")
public class FreightChannelControlController {

    @Autowired
    FreightChannelControlService freightChannelControlService;


    // 商品出货
    @PostMapping("/out")
    public boolean out(FreightChannel data) {
        return freightChannelControlService.out(data);
    }
    @PostMapping("/selfInspection")
    public boolean selfInspection(FreightChannel data) {
        return freightChannelControlService.selfInspection(data);
    }
}
